package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.dto.SetmealDto;
import com.itheima.reggie.pojo.Dish;
import com.itheima.reggie.pojo.Setmeal;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SetmealMapper extends BaseMapper<Setmeal> {

    Page<SetmealDto> pageSetMeal(
            @Param("page") Page<SetmealDto> setmealPage,
            @Param("name") String name);
    //根据ID查询数据回显
    SetmealDto getSetMealDto(Long id);
   //根据套餐ID 查询菜品信息
    List<DishDto> setMealDish(Long id);
}


